<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<link rel="stylesheet" href="css/style2.css">
<?php 
session_start();
?>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title><?php echo "Bonjour !! ".$_SESSION['prenom']?></title>
    </head>
    <body>
<div id="header-container">
  <header class="wrapper">
    <div id="logo"> <img src="images/afrique.png" alt="Africa" width="180" height="178"> </div>
  <!-- debut du header -->
  </header>
  </div>
<!--end header -->
<!--start main content -->
<div id="main" class="wrapper">
  <div id="enter">
    <h2>&quot;<?php echo"Bienvenue :".$_SESSION['prenom'] ?>  &quot;</h2>
  </div>
    <!-- profil-->
  <aside>
      <div class="coooooo" width="180" height="178">
          <img src="" width="180" height="178" /><br />
      </div>
      <!informations sur la personne connectée-->
      <div class="persone">
          
      <?php
            echo "<tr>";
            echo "<td> Nom :" .$_SESSION['nom'] . "</td><br />";
            echo "<td> Prenom:" .$_SESSION['prenom'] . "</td><br />";
            echo "<td> Pseudo:" .$_SESSION['pseudo'] . "</td><br />";
            echo "</tr>";
            echo "<td> Auslogen :hmmmm";"<br />";
       ?>
      </div>
        <!-- ici c'est le profil de la personne-->
 </aside>
  
    <div class="banner" id="slower"> 
        <!-- hochladen der Datei-->
        <form action="upload_File.php" method="post" enctype="multipart/form-data">
            <label for="file">Nom du Fichier:</label>
            <input type="file" name ="file" id="file" /><br />
            <input type="submit" name="submit" value="Submit" />   
        </form>
    </div>
    <div class="abox">
       <?php
          $con = mysql_connect("localhost", "root", "");
           // je me connecte avec la base de données
            $base = mysql_select_db("apple",$con);
           // je donne un ordre a la table
           $result = mysql_query("SELECT * FROM wiesen3");
           
          echo "<table border='1'>
          <tr>
                <th>Pseudonyme</th>
                <th>Commentaires</th>
          </tr>";
          //affiche les résultats dans un tableau
          while($yon = mysql_fetch_array($result))
          { 
               echo "<tr>";
               echo "<td>" .$yon['Pseudo'] . "</td>";
               echo "<td>" .$yon['Commentaires'] . "</td>";
               echo "</tr>";
               
          }
          echo date("Y/m/d") . "<br />";
          ?><br /><br />
      </div>
 
    
      <form method ="post" action="apple.php">
          Pseudo :<?php $_SESSION['pseudo']; ?> <br /><br />
      <label for="ameliorer"> Idées d'ameliorations</label><br />
          <textarea name="ameliorer" id="ameliorer"></textarea>
          <input type="submit" class="zod2" value="soumettre" />
          <!-- redonne les informations sur la page web -->
      </form>
      
</div>
<!--end main content -->
 <!--start footer -->
 <div id="footer-container">
           <footer class="wrapper">
             <div class="footer-nav">
               
             </div>
             <!--end footer nav -->
           </footer>
       </div>
       
    </body>
</html>
